/////////////////////////////////////////////////////////////////////////////
//
//  Fifteen Puzzle
//  Kolonitsky Developers Alliance (c) 2012
//  All rights received
//
/////////////////////////////////////////////////////////////////////////////

package view.events
{

    import flash.events.Event;

    import model.types.DirectionName;

    public class GameEvent extends Event
    {
        public static const CREATE:String = "createPuzzle";
        public static const START:String = "startPuzzle";
        public static const RESULT:String = "resultPuzzle";
        public static const MOVE:String = "move";
        public static const MENU:String = "menu";

        public var direction:String = "";

        public function GameEvent(type:String, bubbles:Boolean = false,
            cancelable:Boolean = false, direction:String = "top")
        {
            super(type, bubbles, cancelable);
            this.direction = direction;
        }


        //--------------------------------------------------------------------
        //
        //  Override Event methods
        //
        //--------------------------------------------------------------------

        override public function clone():Event
        {
            return new GameEvent(type, bubbles, cancelable, direction) as Event;
        }
    }
}
